/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author shilinghuai
 * @create 2022/4/14
 * @since 1.0.0
 */
public class Garbage {
    public static class A{
        B b = null;
    }
    public static class  B{
        C c = null;
    }
    public static class C{

    }
    public static void main(String[] args){
        Garbage threePrint = new Garbage();
        threePrint.testA();
        System.out.println("---");
    }
    public void testA(){
        A a = new A();
        testB( a);
        System.out.println("---");

    }
    public void testB(A a){
        B b = new B();
        a.b = b;
        b.c = new C();
    }


}
